package com.sourcespro.mybatis.controller;

import com.sourcespro.mybatis.crudparams.PageInfo;
import com.sourcespro.mybatis.crudparams.swaggernotes.CategoryNotes;
import com.sourcespro.mybatis.entity.Category;
import com.sourcespro.mybatis.service.CategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
import org.springframework.validation.BindingResult;
import org.springframework.validation.FieldError;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * 分类
 *
 * @author 张浩伟
 * @date 2018/07/07
 */
@Api(value = "Category", description = "分类")
@RestController
@RequestMapping(value = "/Category")
public class CategoryController {

    private static final Logger logger = LoggerFactory.getLogger(CategoryController.class);

    @Autowired
    private CategoryService service;

    @GetMapping
    String ok(){
        service.ok();
        return "ok";
    }


}